package com.clg.common.beans;

import com.clg.common.model.User;

/**
 * Created by usercai on 2016/9/27.
 */
public class SessionUser {
    private String loginName;
    private String userName;

    public SessionUser(String loginName, String userName) {
        this.loginName = loginName;
        this.userName = userName;
    }

    public SessionUser(User user) {
        this.loginName = user.getLoginName();
        this.userName = user.getUserName();
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
